import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue')
  },
  {
    path: '/userinformation',
    name: 'Userinformation',
    component: () => import(/* webpackChunkName: "userinformation" */ '../views/Userinformation.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import(/* webpackChunkName: "login" */ '../views/Login.vue')
  },
  {
    path: '/user',
    name: 'User',
    component: () => import(/* webpackChunkName: "user" */ '../views/User.vue')
  },
  {
    path: '/orderList',
    name: 'orderList',
    component: () => import(/* webpackChunkName: "orderList" */ '../views/orderList.vue')
  },
  // 评论详细
  {
    path: '/fahuodanCkpl',
    name: 'FahuodanCkpl',
    component: () => import(/* webpackChunkName: "fahuodanCkpl" */ '../components/FahuodanCkpl.vue')
  },
  // 确认发货
  {
    path: '/fahuodanQrfh',
    name: 'FahuodanQrfh',
    component: () => import(/* webpackChunkName: "fahuodanQrfh" */ '../components/FahuodanQrfh.vue')
  },
   // 点击评论
   {
    path: '/fahuodandjpl',
    name: 'Fahuodandjpl',
    component: () => import(/* webpackChunkName: "fahuodandjpl" */ '../components/Fahuodandjpl.vue')
  },
  // 信息详细
  {
    path: '/messagetypeData',
    name: 'MessagetypeData',
    component: () => import(/* webpackChunkName: "messagetypeData" */ '../components/MessagetypeData.vue')
  },
  // 个人中心用户信息详情
  {
    path: '/myuser',
    name: 'Myuser',
    component: () => import(/* webpackChunkName: "myuser" */ '../components/Myuser.vue')
  },
  // 个人中心版本信息
  {
    path: '/myuserversion',
    name: 'Myuserversion',
    component: () => import(/* webpackChunkName: "myuserversion" */ '../components/Myuserversion.vue')
  },
  //物流单、
  {
    path: '/star',
    name: 'Star',
    component: () => import(/* webpackChunkName: "star" */ '../views/Star.vue')
  },
  // 查询物流单评价详情
  {
    path: '/starchilder',
    name: 'Starchilder',
    component: () => import(/* webpackChunkName: "starchilder" */ '../components/Starchilder.vue')
  },
  // 查询物流单评价
  {
    path: '/starchild',
    name: 'Starchild',
    component: () => import(/* webpackChunkName: "starchild" */ '../components/Starchild.vue')
  },
  // 查询物流单评价
  {
    path: '/custuser',
    name: 'Custuser',
    component: () => import(/* webpackChunkName: "custuser" */ '../views/Custuser.vue')
  },
  // 查询物流单评价
  {
    path: '/cust',
    name: 'Cust',
    component: () => import(/* webpackChunkName: "cust" */ '../components/Cust.vue')
  },
  //客户信息
  {
    path: '/custkhxx',
    name: 'Custkhxx',
    component: () => import(/* webpackChunkName: "custkhxx" */ '../components/Custkhxx.vue')
  },
  //客户信息编辑
  {
    path: '/custbjzl',
    name: 'Custbjzl',
    component: () => import(/* webpackChunkName: "custbjzl" */ '../components/Custbjzl.vue')
  },
  //客户新增
  {
    path: '/custxin',
    name: 'Custxin',
    component: () => import(/* webpackChunkName: "custxin" */ '../components/Custxin.vue')
  },
  //客户关怀
  {
    path: '/visit',
    name: 'Visit',
    component: () => import(/* webpackChunkName: "visit" */ '../views/Visit.vue')
  },
  //客户关怀新增拜访
  {
    path: '/visitnew',
    name: 'Visitnew',
    component: () => import(/* webpackChunkName: "visitnew" */ '../components/Visitnew.vue')
  },
  //客户关怀新增拜访
  {
    path: '/visitnewid',
    name: 'Visitnewid',
    component: () => import(/* webpackChunkName: "visitnewid" */ '../components/Visitnewid.vue')
  },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }Cust
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})



export default router
